#include "Worker.h"

Worker::Worker(QObject *parent)
{

}

void Worker::doWork(int parameter)
{
    qDebug() << "receive the execute signal" ;
    qDebug() << "\tCurrent thread ID: " << QThread::currentThreadId();
    for (int i = 0; i != 1000000; ++i)
    {
        ++parameter ;
        emit resultReady(parameter);
    }
}
